using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using System.Data;
using System.Collections;
using DAOLayer;

namespace BUSLayer
{
    public class SachMatBus
    {
        public void ThemSachMat(SachMatDto smdto)
        {
            SachMatDao smdao = new SachMatDao();
            smdao.ThemSachMat(smdto);
        }

        public void CapNhatBangSachMat(DataTable dt)
        {
            SachMatDao smdao = new SachMatDao();
            smdao.CapNhatBangSachMat(dt);
        }

        public void CapNhatSachMat(SachMatDto smdto)
        {
            SachMatDao smdao = new SachMatDao();
            smdao.CapNhatSachMat(smdto);
        }

        public DataTable LayBangSachMat()
        {
            SachMatDao sm = new SachMatDao();
            DataTable dt = new DataTable();
            dt = sm.LayBangSachMat();
            return dt;
        }

    }
}
